<?php return array (
  'base' => 
  array (
    'name' => 'consumer_surprice',
    'comment' => '',
  ),
  'fields' => 
  array (
    0 => 
    array (
      'type' => 'int',
      'length' => '11',
      'name' => 'id',
      'null' => 'NO',
      'key' => 'PRI',
      'default' => NULL,
      'comment' => '主键',
      'is_hide' => 0,
    ),
    1 => 
    array (
      'type' => 'int',
      'length' => '11',
      'name' => 'consumer_id',
      'null' => 'NO',
      'key' => '',
      'default' => NULL,
      'comment' => '消费者id',
      'is_hide' => 0,
      'relate' => [
        'table' =>'consumer',
        'field' =>'id',
        'select'=>'nickname',
        'name'  =>'consumer_nickname',
        'comment' => '消费者'
      ]
    ),
    2 => 
    array (
      'type' => 'int',
      'length' => '11',
      'name' => 'surprice_id',
      'null' => 'NO',
      'key' => '',
      'default' => NULL,
      'comment' => '奖品id',
      'is_hide' => 0,
      'relate' => [
        'table' =>'surprice',
        'field' =>'id',
        'select'=>'subject',
        'name'  =>'surprice_subject',
        'comment' => '奖品'
      ]
    ),
    3 => 
    array (
      'type' => 'varchar',
      'length' => '6',
      'name' => 'verify_code',
      'null' => 'NO',
      'key' => '',
      'default' => NULL,
      'comment' => '兑换码',
      'is_hide' => 0,
    ),
    4 => 
    array (
      'type' => 'timestamp',
      'name' => 'created_at',
      'null' => 'NO',
      'key' => '',
      'default' => 'CURRENT_TIMESTAMP',
      'comment' => '创建时间',
      'is_hide' => 0,
    ),
    5 => 
    array (
      'type' => 'boolean',
      'name' => 'is_delete',
      'null' => 'NO',
      'key' => '',
      'default' => NULL,
      'comment' => '删除标记',
      'is_hide' => 0,
    ),
  ),
);